// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.expr.SQLCharExpr;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlMigrateStatement.h"
#include "../../../../ast/SQLName.h"
#include "../../../../ast/expr/SQLCharExpr.h"
#include "../../../../ast/expr/SQLIntegerExpr.h"
#include "../../visitor/MySqlASTVisitor.h"

// @Override
void MySqlMigrateStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlMigrateStatement)))
  {
    acceptChild(visitor, schema);
    acceptChild(visitor, shardNames);
    acceptChild(visitor, migrateType);
    acceptChild(visitor, fromInsId);
    acceptChild(visitor, fromInsIp);
    acceptChild(visitor, fromInsPort);
    acceptChild(visitor, fromInsStatus);
    acceptChild(visitor, toInsId);
    acceptChild(visitor, toInsIp);
    acceptChild(visitor, toInsPort);
    acceptChild(visitor, toInsStatus);
  }
  visitor->endVisit(SharedObject(MySqlMigrateStatement));
}

SQLName_ptr MySqlMigrateStatement::getSchema()
{
  return schema;
}

void MySqlMigrateStatement::setSchema(SQLName_ptr schema)
{
  this->schema = schema;
}

SQLCharExpr_ptr MySqlMigrateStatement::getShardNames()
{
  return shardNames;
}

void MySqlMigrateStatement::setShardNames(SQLCharExpr_ptr shardNames)
{
  this->shardNames = shardNames;
}

SQLIntegerExpr_ptr MySqlMigrateStatement::getMigrateType()
{
  return migrateType;
}

void MySqlMigrateStatement::setMigrateType(SQLIntegerExpr_ptr migrateType)
{
  this->migrateType = migrateType;
}

SQLCharExpr_ptr MySqlMigrateStatement::getFromInsId()
{
  return fromInsId;
}

void MySqlMigrateStatement::setFromInsId(SQLCharExpr_ptr fromInsId)
{
  this->fromInsId = fromInsId;
}

SQLCharExpr_ptr MySqlMigrateStatement::getFromInsIp()
{
  return fromInsIp;
}

void MySqlMigrateStatement::setFromInsIp(SQLCharExpr_ptr fromInsIp)
{
  this->fromInsIp = fromInsIp;
}

SQLIntegerExpr_ptr MySqlMigrateStatement::getFromInsPort()
{
  return fromInsPort;
}

void MySqlMigrateStatement::setFromInsPort(SQLIntegerExpr_ptr fromInsPort)
{
  this->fromInsPort = fromInsPort;
}

SQLCharExpr_ptr MySqlMigrateStatement::getFromInsStatus()
{
  return fromInsStatus;
}

void MySqlMigrateStatement::setFromInsStatus(SQLCharExpr_ptr fromInsStatus)
{
  this->fromInsStatus = fromInsStatus;
}

SQLCharExpr_ptr MySqlMigrateStatement::getToInsId()
{
  return toInsId;
}

void MySqlMigrateStatement::setToInsId(SQLCharExpr_ptr toInsId)
{
  this->toInsId = toInsId;
}

SQLCharExpr_ptr MySqlMigrateStatement::getToInsIp()
{
  return toInsIp;
}

void MySqlMigrateStatement::setToInsIp(SQLCharExpr_ptr toInsIp)
{
  this->toInsIp = toInsIp;
}

SQLIntegerExpr_ptr MySqlMigrateStatement::getToInsPort()
{
  return toInsPort;
}

void MySqlMigrateStatement::setToInsPort(SQLIntegerExpr_ptr toInsPort)
{
  this->toInsPort = toInsPort;
}

SQLCharExpr_ptr MySqlMigrateStatement::getToInsStatus()
{
  return toInsStatus;
}

void MySqlMigrateStatement::setToInsStatus(SQLCharExpr_ptr toInsStatus)
{
  this->toInsStatus = toInsStatus;
}
